package com.ruibang.glass.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.quality.domain.req.DefectLossReq;
import com.ruibang.glass.quality.domain.req.EverydayDefectLossReq;
import com.ruibang.glass.quality.entity.EverydayDefectLoss;
import com.teaming.cloud.framework2.common.model.ResultBody;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 每日缺陷损失数据 服务实现类
 * </p>
 *
 * @author wujie
 * @since 2020-08-06
 */
public interface EverydayDefectLossService extends IService<EverydayDefectLoss> {


    ResultBody queryEverydayDefectLoss(EverydayDefectLossReq everydayDefectLossReq);

    List<String> getAllTimeKey();

    List<EverydayDefectLoss> queryNotUpdateData();

    ResultBody queryHotLoss(DefectLossReq defectLossReq);

    ResultBody queryColdLoss(DefectLossReq defectLossReq);

    ResultBody queryTotalLoss(DefectLossReq defectLossReq);

    void deleteDayData(DefectLossReq defectLossReq);

    List<EverydayDefectLoss> getByDate(ArrayList<String> date);
}
